package calc.buttonPanel;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;

import javax.swing.BorderFactory;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JTextPane;

import calc.CalFrame;

public class DispPanel extends JPanel{
	
	private JTextField historyDisp;
	private JTextField currentDisp;
	
	public DispPanel() {
				
		setLayout(null);
		
		historyDisp = new JTextField();
		historyDisp.setEditable(false);
		historyDisp.setBorder(null);
		historyDisp.setHorizontalAlignment(JTextField.RIGHT);
		historyDisp.setFont(new Font(Font.SERIF,0,14));
		historyDisp.setText("");
		historyDisp.setBounds(0, 0, 280, 25);
		historyDisp.setBackground(Color.red);
		add(historyDisp,null);
		
		currentDisp = new JTextField();
		currentDisp.setEditable(false);
		currentDisp.setBorder(null);
		currentDisp.setHorizontalAlignment(JTextField.RIGHT);
		currentDisp.setFont(new Font(Font.SERIF,0,30));
		currentDisp.setBounds(0, 25, 280, 50);
		currentDisp.setBackground(Color.blue);
		currentDisp.setText("0");
		add(currentDisp,null);
	}
	

	

	public JTextField getHistoryDisp() {
		return historyDisp;
	}


	public JTextField getCurrentDisp() {
		return currentDisp;
	}



	public void setHistoryDisp(JTextField historyDisp) {
		this.historyDisp = historyDisp;
	}


	public void setCurrentDisp(JTextField currentDisp) {
		this.currentDisp = currentDisp;
	}
	
}
